<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--
@html_name: 01fromEntries
@description: The past cannot be redeemed, the future can be changed.
@author: Jason Black
@create: 2023/6/27 19:33:45
-->
<script type="text/javascript">
   // fromEntries  将Mpa,二维数组转化为对象
   let student = Object.fromEntries([
       ['name','Jason'],
       ['age',21],
       ['sex','female']
   ])
   console.log(student)
   let map = new Map()
   map.set('name','Jason')
   map.set('age',21)
   map.set('sex','female')
   console.log(map)
</script>
</body>
</html>